package com.example.demo.common.enums;

public enum MessageStatus {
    OK(200, "OK"),
    
    AUTO_REFUND(300, "AUTO_REFUND"),
    
    TOKEN_EXPIRED(401, "Expired Token"),
    
    TOKEN_ILLEGAL(403, "Illegal Token"),
    
    UNKNOWN_ERROR(40000, "Unknown Error"),
    
    ERROR(40000, "General Error");
    
    private final Integer value;
    private final String message;
    
    MessageStatus(Integer value, String message) {
        this.value = value;
        this.message = message;
    }
    
    public int value() {
        return this.value;
    }
    
    public String message() {
        return this.message;
    }
}
